package com.ask.service;


import com.ask.dto.EmployeeDTO;
import com.ask.dto.EmployeePageQueryDTO;
import com.ask.dto.EmployeeLoginDTO;
import com.ask.dto.PasswordEditDTO;
import com.ask.entity.Employee;
import com.ask.result.PageResult;
import org.springframework.stereotype.Service;

@Service
public interface EmployeeService {
    /**
     * 新增员工
     *
     * @param employeeDTO
     * @return
     */
    void save(EmployeeDTO employeeDTO);

    /**
     * 修改员工信息
     *
     * @param employeeDto
     * @return
     */
    Employee update(EmployeeDTO employeeDto);

    /**
     * 根据id获取单条记录
     *
     * @param id
     * @return
     */
    Employee getById(Long id);

    /**
     * 启用/禁用员工账号
     *
     * @param id
     * @return
     */
    void startorStop(Integer status, Long id);

    /**
     * 修改密码
     * @param passwordEditDTO
     * @return
     */
    void editPassword(PasswordEditDTO passwordEditDTO);

    /**
     * 分页查询
     * @param employeePageQueryDTO
     * @return
     */
    PageResult pageQuery(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * 用户登录
     * @param loginDTO
     */
    Employee login(EmployeeLoginDTO loginDTO);
}
